package com.sziit.se.highconcurrency.common.service;

import com.sziit.se.highconcurrency.common.entity.LoginRsp;
import com.sziit.se.highconcurrency.common.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sziit.se.highconcurrency.common.entity.UserInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dongchunkeng
 * @since 2022-09-21
 */
public interface IUserService extends IService<User> {
    List<User> getAllData();

    Boolean insertUser(String userName, String password, String phone);

    User getOneData(String userName);

    User getById(String userId);


    Boolean register(String userName, String password, String phone);

    LoginRsp login(String userName, String password);

    UserInfoVo updateUser(String userName, String password, String phone );

    UserInfoVo userInfo();
}
